modifying registration js