added login and logout controller not formatted yet though