setup password validation, flushed out bugs.