Added sign in controller.
some fixes.