apply undefined password Exception Handling