added client validation + made login page