Added /register and /login endpoints.