redirect to index on failure to login

Currently there's an error