Refactor updateAuth, login into their own factory method

- Remove common controller as it is obsolete