Adding user authentication from database.