Added devise and flash messaging
Added in login/logout logic