User registration and authentication added