Login fixed. Added logout option.