Added backend for user registration and login