Login routine tested and implemented