login dialog inplemented