added feature for user registration