Added dynamic login (not working)