Weird login logic

Fixed some really odd login logic for admin users