Login and Registration validation through JS

Added validation functionality to login and registration