redirect to home path from sign in page if already signed in. Changed user variable to local variable.