added primitive login mechanism