Fixed #1059 and Login Page redesign

Added a fix to #1059 execution problem.
Implemented the new login and forgot password pages.