Implement parsing of assignments and login method

DRY