Recreated Login UI and validation in to class