Finished login / register with proper form validation