fixed register page. Now able to register a user