Added functions for displaying password error. Not tested.