added login functionality

Need to handle errors with user id