made auth controller outside ngview