made login form less huge, put rx.state information into globalscope