Implemented userinput validation on register form