Add ajax for user registration