working application with login logout to be fixed