skeleton code for login fixed