coded for video 50; checking for user login