Added a function to get user from database if they supply the correct credentials