Ajax functionality in register form to validate the username