Added simple login validation function, fixed a bug in POST in login html