Adding part 1 for the login functionality