Fixed loginUrl to drop users to homepage