Added session handling, lastlogin and registerdate