i am attempting to create a login function. the function should search the database for an email and a matching password for that email then if both exist, the user should be signed in else, an error should be returned. please assist. Thanks in advance.