made changes to the LoginActivity for better readability.