Implemented stored procedure to compare user credentials with database.