Create Client Side Error Messages Function

Close Feature #129
Created Client Side Error Messages Function based on the session.