Added validations and login system