Updated login menu, name and password checking and refactored a bit