added non-empty check at login page and files missed in last commit