Form validation
Fixed authentication