Added input verification on login/registration activities and added comments