Kinda working login model. Statring with main functionality.