active model serialzers gem and cors config
login and logout