Error Handling invalid username to redirect to homepage