Started writing the authentication process