Fixed ajax on registration page