Login checks to api, link removal, code cleanup