Fix User_Model bug
Improve register javascript further