make login and logout API using Contronller Rest