Refactored Login/Signup API - singleton access with Promises. Corrected "typeKey" implementation with "parseClassName".