added some validation for the registration (#4)
fixed mobile ui bug (#7)