Hello, i have a problem with the authentication of my page on "Oracle APEX". Every time I want to register a new registered user to me, the programm shows me an error. Here is my authentication: Code (SQL): CREATE OR REPLACE FUNCTION custom_auth (p_username IN VARCHAR2, p_password IN VARCHAR2) RETURN BOOLEAN IS l_password varchar2(4000); l_stored_password varchar2(4000); l_count NUMBER; BEGIN SELECT COUNT(*) INTO l_count FROM userdaten WHERE username = p_username; IF l_count > 0 THEN SELECT passwort INTO l_stored_password FROM userdaten WHERE username = p_username; l_password := p_password; IF l_stored_password = p_password THEN RETURN TRUE; ELSE RETURN FALSE; END IF; ELSE RETURN FALSE; END IF; END; This error occurs when logging a user on: Invalid Login Credentials. But if I go through the commands in SQL, the continuous test works very well which I have listed above. What could be the problem? Is there anybody, who can help me to find a solution?