GET and POST added to methods
testing of login and logout added