Fixed redirect loop at admin/login

Pull request again #169