fixed validation, links, buttons

on login and register php pages