Update users.py

Removed whitespace; rearranged some if statements for better readability
Update login.py

Removed whitespace; removed if-else where it was unnecessary.