rewrites login's frontend