Ground News Interview Question

Code review of a login function.