Added the widget code and implemented the spinner for login screen.