Validation, Login and Logout

Client and server-side validation added, Login and Logout functionality
also added.