Fix double password submit bug