Fixed the login bug. Declared variables as global for usage and defined ...

...them via the initialize method. Also added radiobutton and checkbox listeners.