Created login required middleware, added login and logout methods for admin