Refactored RGSLoginViewController