making the password prompt work better on mobile devices