Added register page input checking with javascript