clean up commented code
use login page instead of modal