Fixed code to process new user