implement front end authentication using firebase