Added sessions and profile support
added the login controller