Added Javascript for Login Page and Redirecting to Ideas accordingly