added login and cancan gem functionality, working code