adds login and firebase logic