lua handles login now