make login and logout function by devise