started logout function
login authentication and error message working