Fix #4: user registration and login implemented