register is now implemented, now to do login