Login example file and got login working. Needs cleaning.