Added comments for password check

Added comments for password check