adding in new login functionality