update routes for session login
made index file to export
sign out now working properly
Added flash messages and error messages