adds login and create user funcitonality