Made login and register commands two stpes  first enter username then enter password. The password echo is masked.