added saving user in database