login and registering; base funcitonality done