Adopted Error Checking and added it to all forms

-  Added Error Checking to forms
- Adding js and css for error checking
- after user login now redirects to all posts