Added endpoint to check user login