rewrite login widget