fixed loading views from login controller function'