UI login.php modified

now checks for existing session tracks
section to show captcha when required
show errro message