Added RPC method for the Login view