As with all other examples, this should all be via the standard terminal entry and exit points (read keyboard and monitor). I would suggest three prompts: username, password, and command line as, after each input, it will be simpler to test the input submitted and respond appropriately.