Organize code in rescomp_login
Only attempt to log in in __main__