redirect to root path instead of throwing an error when people login directly