added error handling for login process
implemented redirect on sucess login
implemented error message on failed login
added welcome page
fixed minor error in connection hanldign on error