cleanup temp files
fix login return value