Moved <form> position to make register submit button works.

Added some validate.