Fixed issue #64 Added form validation on registration and login forms

Change-Id: I9aa1641384c906cf742750f5edfc9a405cde1887