Adjusted truncate to find more tag in return that code and if not there restrict at character count
changed the login link